package model_domain;

import java.util.ArrayList;
import java.util.List;

public class Student {
	private int number;
	private String name;
	private boolean worker;
	private ArrayList<Grade> grades;
	private Pet pet;
	
//	public Student(int number, String name, Pet pet){
//		this.name = name;
//		this.number = number;
//		worker = false;
//		grades = new ArrayList<Grade>();
//	}
	
	
	public Student(int number, String name, Pet pet){
		this.name = name;
		this.number = number;
		worker = false;
		grades = new ArrayList<Grade>();
		this.pet = pet;
	}
	
	public Pet getPet(){
		return pet;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public boolean isWorker() {
		return worker;
	}

	public void setWorker(boolean worker) {
		this.worker = worker;
	}

	public List<Grade> getGrades() {
		return grades;
	}

	public void addGrade(Assignment assignment, Mark mark) {
		grades.add(new Grade(assignment, mark));
	}

	public int getNumber() {
		return number;
	}

	@Override
	public String toString() {
		return  name;
	}
	
}
